#include "Deplacement.h"

using namespace std;

Deplacement::Deplacement()
{
	m_menu.clear();
	m_menu.push_back("121.Nord");
	m_menu.push_back("122.Sud");
	m_menu.push_back("123.Est");
	m_menu.push_back("124.Ouest");
	m_menu.push_back("0.Annuler");
}

void Deplacement::addElem(std::string action)
{
	//permet de trouver le mot et de ne garder que ce qui suit.
	if(action.find("deplacement/") != string::npos)
	{
		action = action.substr(12);
		m_menu[m_menu.size()-1] = action;
		m_menu.push_back("0.Annuler");
	}
}

void Deplacement::supprElem()
{
		
}
	
	
string Deplacement::getElem(int i)
{
	return m_menu[i];
}

int Deplacement::getSize()
{
	return m_menu.size();
}

